package ar.com.photo_admin.domain.order_state

import ar.com.photo_admin.domain.*;

class ConfirmedOrderState extends PurchaseOrderState  {
	
	ConfirmedOrderState(PurchaseOrder order){
		this.order = order;
	}
		
	def confirm(){
		log.info "No se puede confirmar una orden que ya fue confirmada"
	}
	
	def isCancellable(){
		return true
	}
	
	def isRefundable(){
		return false
	}
	
	def isFinalizable(){
		return true
	}
	
	def showDescription(){
		return "Confirmado"
	}
	
	def isRegistered(){
		return true
	}
	
	
    static constraints = {
    }
}
